<tr>
    <td>
        <table class="inset-table">
                <tr class="dark-heading-row">
                    <th class=""><?php echo $table_title; ?></th>
                    <th>Generated</th>
                    <th>Download</th>
                    <th>Controls</th>
                </tr>
                <?php
                foreach ($reports as $report ) { ?>
                <tr>
                    <td>
                        <?php $report->attr('filename'); ?>
                    </td>
                    <td>
                        <?php echo date("F j Y", strtotime($report->datestamp)); ?>
                    </td>
                    <td>
                        <a href="<?php $report->attr('url'); ?>" title="Download Report"><?php $report->attr('url'); ?></a>
                    </td>
                    <td> <a href="<?php echo $Controller->page_url(); ?>&delete=report&id=<?php $report->attr('report_id'); ?>" title="Delete report"> delete </a> </td>
                </tr>    
                <?php } ?>
                                               
        </table>
        
    </td>
</tr>